import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Scanner;

public class Experiment3 {
    public static int[] trasfer(int  []a){
        int s[]=new int[a.length];
        for(int i=0;i<a.length;i++){
            s[i]=2*a[i];

        }
        return s;
    }
    public static void main(String [] arges)
    {
        int []a={1,2,3};

        int []ret=trasfer(a);
        System.out.println(Arrays.toString(ret));

        System.out.println(Arrays.toString(a));
    }
}